


import { createAction } from "redux-actions"

// 获取todos列表的指令
export const load_todo = createAction('load_todo')
export const load_todo_success = createAction('load_todo_success')

// 新增todos列表的指令
export const add_todo = createAction('add_todo')
export const add_todo_success = createAction('add_todo_success')

// 删除todos列表的指令
export const remove_todo = createAction('remove_todo')
export const remove_todo_success = createAction('remove_todo_success')

// 修改todos列表选中状态的指令
export const modify_todo = createAction('modify_todo')
export const modify_todo_success = createAction('modify_todo_success')

// 筛选列表的指令
export const modify_todo_filter = createAction('modify_todo_filter')

// 清除完成事项的指令
export const clear_todo_completed = createAction('clear_todo_completed')
export const clear_todo_completed_success = createAction('clear_todo_completed_success')

// 修改任务名称的指令
export const edit_todo = createAction('edit_todo')
export const edit_todo_success = createAction('edit_todo_success')

// 修改任务名称的指令
export const modify_todo_name = createAction('modify_todo_name')
export const modify_todo_name_success = createAction('modify_todo_name_success')